package dwz.persistence.beans;


import dwz.persistence.beans.Article;

/** 
* Created by Eclipse
* @author : Yating
* @version:2017年4月18日 下午5:12:13 
* 类说明 
*/
public class ArticleTransformer {
	public static <T extends Article, K extends Article> K trans(T from, K to) {
		to.setBrief(from.getBrief());
		to.setAuthorid(from.getAuthorid());
		to.setCode(from.getCode());
		to.setContent(from.getContent());
		to.setContributor(from.getContributor());
		to.setCreatetime(from.getCreatetime());
		to.setExpiretime(from.getExpiretime());
		to.setKeyword(from.getKeyword());
		to.setLastauditip(from.getLastauditip());
		to.setLastauditlog(from.getLastauditlog());
		to.setLastaudittime(from.getLastaudittime());
		to.setLastaudituserid(from.getLastaudituserid());
		to.setLastmodifytime(from.getLastmodifytime());
		to.setLastmoduserid(from.getLastmoduserid());
		to.setNote(from.getNote());
		to.setOrgtime(from.getOrgtime());
		to.setPublisherid(from.getPublisherid());
		to.setPubliship(from.getPubliship());
		to.setPublishtime(from.getPublishtime());
		to.setRelatelist(from.getRelatelist());
		to.setRootpath(from.getRootpath());
		to.setServerlist(from.getServerlist());
		to.setState(from.getState());
		to.setSource(from.getSource());
		to.setTitle(from.getTitle());
		to.setWebpath(from.getWebpath());
		to.setCounterid(from.getCounterid());
		return to;
	}
}
 